package com.huawei.aiservice.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_feedback")
public class FeedBack {
    @TableId(type = IdType.AUTO)
    private int feedBackId;

    private int defectId;

    private int userId;

    private int reportId;

    private boolean isAgree;

    private boolean isCancel;

    private String reason;

    public FeedBack(int defectId, int userId, int reportId, boolean isAgree, boolean isCancel, String reason) {
        this.defectId = defectId;
        this.userId = userId;
        this.reportId = reportId;
        this.isAgree = isAgree;
        this.isCancel = isCancel;
        this.reason = reason;
    }
}
